<template >
  <transition name="fade-transform" mode="out-in">
    <keep-alive :include="cachedViews">
      <div style="height:100%;width:100%;overflow:hidden;" v-scrollbar>
      <router-view :key="key" />
      </div>
    </keep-alive>
  </transition>
</template>
<script>
  export default {
    computed: {
      cachedViews() {
        return this.$store.state.tagsView.cachedViews
      },
      key() {
        return this.$route.path
      }
    }
  }
</script>